package com.ljf.finance.web;

import com.ljf.common.result.ResultModel;
import com.ljf.common.utils.EnumUtil;
import com.ljf.finance.enums.FinanceDatVirtualAccountCommonUsedEnum;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 资产模块 枚举类 控制器
 *
 * @author LJF
 * @since 2025-07-20
 */
@RestController
@RequestMapping("/enum/finance")
@Api(value = "资产模块枚举类接口", tags = "资产模块枚举类接口")
public class FinanceEnumController {

    @GetMapping("/virtual_account/common_used")
    @ApiOperation(value = "查询虚拟账户是否常用枚举")
    public ResultModel getVirtualAccountCommonUsed() {
        return EnumUtil.getEnumVoResult(FinanceDatVirtualAccountCommonUsedEnum.values());
    }

}